// ==UserScript==
// @name        loadjquery
// @namespace   jquery
// @description 加载jquery
// @author      duxinjun@163.com
// @icon
// @include     http://*
// @include     https://*
// @version     0.01
// @grant       GM_setClipboard
// @grant       unsafeWindow
// @grant       GM_getResourceText
// @grant       GM_xmlhttpRequest
// @require     http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
// @require     https://haoan.gitee.io/static_tools/userscripts/libs/page_init_base.js
// @require     http://test1-1-1.oss.cn-north-1.jcloudcs.com/api_test/my_ext.js?_t=156
// @require     http://test1-1-1.oss.cn-north-1.jcloudcs.com/api_test/toJavaModel.js?_t=4
// ==/UserScript==

var httpProtocol = HTTP_PROTOCOL;
var pageInitJsUrl = httpProtocol + '//haoan.gitee.io/static_tools/userscripts/libs/page_init.js?_t=' + new Date().getTime();

//初始化
function init() {

	//添加快捷面板
	(function (tool) {

		tool.addLabel('复制网址', () => {
			tool.copy(location.href);
		});

		tool.addLabel('新窗口打开', () => {
			window.open(location);
		});

		tool.addLabel('刷新页面', () => {
			location.reload();
		});

	})(shaToolPanel);

}

//加载工具脚本
pageInitBase.loadScript(pageInitJsUrl, () => {
	pageTools.setTAMPERMONKEY_WINDOW(window);
	pageTools.waitDo(() => pageTools.getWin().shaToolPanel, init);
});


